package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ShopCartDao;
import com.platform.entity.ShopCartEntity;
import com.platform.service.ShopCartService;

/**
 * 购物车Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-05-05 14:49:08
 */
@Service("shopCartService")
public class ShopCartServiceImpl implements ShopCartService {
    @Autowired
    private ShopCartDao shopCartDao;

    @Override
    public ShopCartEntity queryObject(Integer id) {
        return shopCartDao.queryObject(id);
    }

    @Override
    public List<ShopCartEntity> queryList(Map<String, Object> map) {
        return shopCartDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return shopCartDao.queryTotal(map);
    }

    @Override
    public int save(ShopCartEntity shopCart) {
        return shopCartDao.save(shopCart);
    }

    @Override
    public int update(ShopCartEntity shopCart) {
        return shopCartDao.update(shopCart);
    }

    @Override
    public int delete(Integer id) {
        return shopCartDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return shopCartDao.deleteBatch(ids);
    }
}
